#!/bin/sh

cat >/etc/frpc.toml<<EOF
serverAddr = "$SERVER_ADDR"
serverPort = $SERVER_PORT

[[proxies]]
name = "$PROXY_NAME"
type = "tcp"
localPort = 1080
remotePort = 4082
loadBalancer.group = "ws"
loadBalancer.groupKey = "ws"
EOF

supervisord -n